import request from '@/utils/request'

const api_name = '/admin/activity/activityInfo'

// 获取分页活动
export const GetActivityInfo = queryData => {
  return request({
    url: `${api_name}/page`,
    method: 'post',
    data:queryData
  })
}

// 保存信息
export const SaveActivityInfo = activityInfo => {
  return request({
    url: `${api_name}/save`,
    method: 'post',
    data: activityInfo,
  })
}

// 根据活动id获取活动规则数据
export const FindActivityRuleList = (id) => {
  return request({
    url: `${api_name}/findActivityRuleList/${id}`,
    method: 'get',
  })
}



// 修改信息
export const UpdateSysMenuById = sysMenu => {
  return request({
    url: `${api_name}/updateById`,
    method: 'put',
    data: sysMenu,
  })
}

// 根据id删除数据
export const RemoveSysMenuById = id => {
  return request({
    url: `${api_name}/removeById/${id}`,
    method: 'delete',
  })
}
